import request from '@/utils/request'

// 获取分类列表
export function getCategoryList(params) {
  return request({
    url: '/categories/',
    method: 'get',
    params
  })
}

// 获取分类详情
export function getCategoryDetail(slug) {
  return request({
    url: `/categories/${slug}/`,
    method: 'get'
  })
}

// 获取分类树
export function getCategoryTree() {
  return request({
    url: '/categories/tree/',
    method: 'get'
  })
}

// 获取导航分类
export function getNavCategories() {
  return request({
    url: '/categories/nav/',
    method: 'get'
  })
} 